﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ProjectManagement.Domain.Entities
{
	public class CompanyContacts
	{
		[Display(Name = "联系人编号")]
		public virtual int ID { get; set; }

		[Display(Name="所属单位")]
		public virtual Company Company { get; set; }

		[Display(Name="联系人")]
		public virtual string LinkMan { get; set; }

		//是否是主要联系人
		public virtual bool IsMain { get; set; }

		//联系人角色
		[Display(Name = "联系人角色")]
		public virtual string LinkManRole { get; set; }

		//部门
		[Display(Name = "部门")]
		public virtual string Department { get; set; }

		//手机
		[Display(Name = "电话")]
		public virtual string Tel { get; set; }

		//传真
		[Display(Name = "传真")]
		public virtual string Fax { get; set; }

		//手机
		[Display(Name = "手机")]
		public virtual string Mobile { get; set; }

		// qq
		[Display(Name = "QQ")]
		public virtual string QQ { get; set; }

		//msn
		[Display(Name = "MSN")]
		public virtual string MSN { get; set; }

		//邮箱
		[DataType(DataType.EmailAddress)]
		[Display(Name="邮箱")]
		public virtual string Email { get; set; }

		//备注
		[Display(Name = "备注")]
		public virtual string Remarks { get; set; }

		//录入人
		[Display(Name = "录入人")]
		public virtual User Creator { get; set; }

		//创建时间
		[Display(Name = "创建时间")]
		public virtual DateTime CreateTime { get; set; }

		//编辑人
		[Display(Name = "编辑人")]
		public virtual User Editor { get; set; }

		//编辑时间
		[Display(Name = "编辑时间")]
		public virtual DateTime EditTime { get; set; }
	}
}
